package com.pay.dextest;

import android.content.Context;

public final class ContextUtil {
    private static Context sContext;

    public static void setContext(Context context) {
        sContext = context;
    }

    public static Context getContext() {
        checkInit();
        return sContext;
    }

    private static void checkInit() {
        if (null == sContext) {
            throw new RuntimeException("context must be init");
        }
    }
}
